package com.bean;

public class Orders {
    private String OrderID;
    private int UserID;
    private int FarmerID;
    private int ProductID;
    private int Quantity;
    private String PurchaseDate;
    private Double TotalPrice;
    private int Status; //表示订单的更新状态

    public Orders() {
    }

    public Orders(String orderID, int userID, int farmerID, int productID, int quantity, String purchaseDate, Double totalPrice, int status) {
        OrderID = orderID;
        UserID = userID;
        FarmerID = farmerID;
        ProductID = productID;
        Quantity = quantity;
        PurchaseDate = purchaseDate;
        TotalPrice = totalPrice;
        Status = status;
    }

    public String getOrderID() {
        return OrderID;
    }

    public void setOrderID(String orderID) {
        OrderID = orderID;
    }

    public int getUserID() {
        return UserID;
    }

    public void setUserID(int userID) {
        UserID = userID;
    }

    public int getFarmerID() {
        return FarmerID;
    }

    public void setFarmerID(int farmerID) {
        FarmerID = farmerID;
    }

    public int getProductID() {
        return ProductID;
    }

    public void setProductID(int productID) {
        ProductID = productID;
    }

    public int getQuantity() {
        return Quantity;
    }

    public void setQuantity(int quantity) {
        Quantity = quantity;
    }

    public String getPurchaseDate() {
        return PurchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        PurchaseDate = purchaseDate;
    }

    public Double getTotalPrice() {
        return TotalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        TotalPrice = totalPrice;
    }

    public int getStatus() {
        return Status;
    }

    public void setStatus(int status) {
        Status = status;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "OrderID='" + OrderID + '\'' +
                ", UserID=" + UserID +
                ", FarmerID=" + FarmerID +
                ", ProductID=" + ProductID +
                ", Quantity=" + Quantity +
                ", PurchaseDate='" + PurchaseDate + '\'' +
                ", TotalPrice=" + TotalPrice +
                ", Status=" + Status +
                '}';
    }
}
